﻿/*
 * XCoder v3.4.2011.0316
 * 作者：nnhy/X
 * 时间：2011-04-04 11:54:06
 * 版权：版权所有 (C) 新生命开发团队 2010
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using XCode;
using XCode.DataAccessLayer;

namespace NXCMS.CMS
{
	/// <summary>
	/// 论坛分数
	/// </summary>
	[Serializable]
	[DataObject]
	[Description("论坛分数")]
	[BindTable("ForumScore", Description = "论坛分数", ConnName = "CMS", DbType = DatabaseType.SqlServer)]
	public partial class ForumScore
	{
		#region 属性
		private Int32 _ID;
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "编号", "", "int", 10, 0, false)]
		public Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChange("ID", value)) _ID = value; }
		}

		private Int32 _SiteID;
		/// <summary>
		/// 站点编号
		/// </summary>
		[Description("站点编号")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(2, "SiteID", "站点编号", "", "int", 10, 0, false)]
		public Int32 SiteID
		{
			get { return _SiteID; }
			set { if (OnPropertyChange("SiteID", value)) _SiteID = value; }
		}

		private Int32 _InitScore;
		/// <summary>
		/// 初始分数
		/// </summary>
		[Description("初始分数")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(3, "InitScore", "初始分数", "", "int", 10, 0, false)]
		public Int32 InitScore
		{
			get { return _InitScore; }
			set { if (OnPropertyChange("InitScore", value)) _InitScore = value; }
		}

		private Int32 _PublishTheme;
		/// <summary>
		/// 发布主题
		/// </summary>
		[Description("发布主题")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(4, "PublishTheme", "发布主题", "", "int", 10, 0, false)]
		public Int32 PublishTheme
		{
			get { return _PublishTheme; }
			set { if (OnPropertyChange("PublishTheme", value)) _PublishTheme = value; }
		}

		private Int32 _DeleteTheme;
		/// <summary>
		/// 删除主题
		/// </summary>
		[Description("删除主题")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(5, "DeleteTheme", "删除主题", "", "int", 10, 0, false)]
		public Int32 DeleteTheme
		{
			get { return _DeleteTheme; }
			set { if (OnPropertyChange("DeleteTheme", value)) _DeleteTheme = value; }
		}

		private Int32 _PublishPost;
		/// <summary>
		/// 发布发布
		/// </summary>
		[Description("发布发布")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(6, "PublishPost", "发布发布", "", "int", 10, 0, false)]
		public Int32 PublishPost
		{
			get { return _PublishPost; }
			set { if (OnPropertyChange("PublishPost", value)) _PublishPost = value; }
		}

		private Int32 _DeletePost;
		/// <summary>
		/// 删除发布
		/// </summary>
		[Description("删除发布")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(7, "DeletePost", "删除发布", "", "int", 10, 0, false)]
		public Int32 DeletePost
		{
			get { return _DeletePost; }
			set { if (OnPropertyChange("DeletePost", value)) _DeletePost = value; }
		}

		private Int32 _Best;
		/// <summary>
		/// 最好
		/// </summary>
		[Description("最好")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(8, "Best", "最好", "", "int", 10, 0, false)]
		public Int32 Best
		{
			get { return _Best; }
			set { if (OnPropertyChange("Best", value)) _Best = value; }
		}

		private Int32 _CancelBest;
		/// <summary>
		/// 取消最好
		/// </summary>
		[Description("取消最好")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(9, "CancelBest", "取消最好", "", "int", 10, 0, false)]
		public Int32 CancelBest
		{
			get { return _CancelBest; }
			set { if (OnPropertyChange("CancelBest", value)) _CancelBest = value; }
		}

		private Int32 _Bright;
		/// <summary>
		/// 明亮
		/// </summary>
		[Description("明亮")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(10, "Bright", "明亮", "", "int", 10, 0, false)]
		public Int32 Bright
		{
			get { return _Bright; }
			set { if (OnPropertyChange("Bright", value)) _Bright = value; }
		}

		private Int32 _CancelBright;
		/// <summary>
		/// 取消明亮
		/// </summary>
		[Description("取消明亮")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(11, "CancelBright", "取消明亮", "", "int", 10, 0, false)]
		public Int32 CancelBright
		{
			get { return _CancelBright; }
			set { if (OnPropertyChange("CancelBright", value)) _CancelBright = value; }
		}

		private Int32 _TopTheme;
		/// <summary>
		/// 顶部主题
		/// </summary>
		[Description("顶部主题")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(12, "TopTheme", "顶部主题", "", "int", 10, 0, false)]
		public Int32 TopTheme
		{
			get { return _TopTheme; }
			set { if (OnPropertyChange("TopTheme", value)) _TopTheme = value; }
		}

		private Int32 _CancelTop;
		/// <summary>
		/// 取消顶部
		/// </summary>
		[Description("取消顶部")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(13, "CancelTop", "取消顶部", "", "int", 10, 0, false)]
		public Int32 CancelTop
		{
			get { return _CancelTop; }
			set { if (OnPropertyChange("CancelTop", value)) _CancelTop = value; }
		}

		private Int32 _UpTheme;
		/// <summary>
		/// 上主题
		/// </summary>
		[Description("上主题")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(14, "UpTheme", "上主题", "", "int", 10, 0, false)]
		public Int32 UpTheme
		{
			get { return _UpTheme; }
			set { if (OnPropertyChange("UpTheme", value)) _UpTheme = value; }
		}

		private Int32 _DownTheme;
		/// <summary>
		/// 下主题
		/// </summary>
		[Description("下主题")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(15, "DownTheme", "下主题", "", "int", 10, 0, false)]
		public Int32 DownTheme
		{
			get { return _DownTheme; }
			set { if (OnPropertyChange("DownTheme", value)) _DownTheme = value; }
		}

		private Int32 _Upload;
		/// <summary>
		/// 上传
		/// </summary>
		[Description("上传")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(16, "Upload", "上传", "", "int", 10, 0, false)]
		public Int32 Upload
		{
			get { return _Upload; }
			set { if (OnPropertyChange("Upload", value)) _Upload = value; }
		}

		private Int32 _Download;
		/// <summary>
		/// 下载
		/// </summary>
		[Description("下载")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(17, "Download", "下载", "", "int", 10, 0, false)]
		public Int32 Download
		{
			get { return _Download; }
			set { if (OnPropertyChange("Download", value)) _Download = value; }
		}

		private Int32 _Search;
		/// <summary>
		/// 搜索
		/// </summary>
		[Description("搜索")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(18, "Search", "搜索", "", "int", 10, 0, false)]
		public Int32 Search
		{
			get { return _Search; }
			set { if (OnPropertyChange("Search", value)) _Search = value; }
		}

		private Int32 _Vote;
		/// <summary>
		/// 投票
		/// </summary>
		[Description("投票")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(19, "Vote", "投票", "", "int", 10, 0, false)]
		public Int32 Vote
		{
			get { return _Vote; }
			set { if (OnPropertyChange("Vote", value)) _Vote = value; }
		}

		private String _prop1;
		/// <summary>
		/// 属性1
		/// </summary>
		[Description("属性1")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(20, "prop1", "属性1", "", "nvarchar(50)", 0, 0, true)]
		public String prop1
		{
			get { return _prop1; }
			set { if (OnPropertyChange("prop1", value)) _prop1 = value; }
		}

		private String _prop2;
		/// <summary>
		/// 属性2
		/// </summary>
		[Description("属性2")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(21, "prop2", "属性2", "", "nvarchar(50)", 0, 0, true)]
		public String prop2
		{
			get { return _prop2; }
			set { if (OnPropertyChange("prop2", value)) _prop2 = value; }
		}

		private String _prop3;
		/// <summary>
		/// 属性3
		/// </summary>
		[Description("属性3")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(22, "prop3", "属性3", "", "nvarchar(50)", 0, 0, true)]
		public String prop3
		{
			get { return _prop3; }
			set { if (OnPropertyChange("prop3", value)) _prop3 = value; }
		}

		private String _prop4;
		/// <summary>
		/// 属性4
		/// </summary>
		[Description("属性4")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(23, "prop4", "属性4", "", "nvarchar(50)", 0, 0, true)]
		public String prop4
		{
			get { return _prop4; }
			set { if (OnPropertyChange("prop4", value)) _prop4 = value; }
		}

		private String _AddUser;
		/// <summary>
		/// 添加用户
		/// </summary>
		[Description("添加用户")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(24, "AddUser", "添加用户", "", "nvarchar(100)", 0, 0, true)]
		public String AddUser
		{
			get { return _AddUser; }
			set { if (OnPropertyChange("AddUser", value)) _AddUser = value; }
		}

		private DateTime _AddTime;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Description("添加时间")]
		[DataObjectField(false, false, false, 7)]
		[BindColumn(25, "AddTime", "添加时间", "", "datetime2", 7, 0, false)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set { if (OnPropertyChange("AddTime", value)) _AddTime = value; }
		}

		private String _ModifyUser;
		/// <summary>
		/// 修改用户
		/// </summary>
		[Description("修改用户")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(26, "ModifyUser", "修改用户", "", "nvarchar(100)", 0, 0, true)]
		public String ModifyUser
		{
			get { return _ModifyUser; }
			set { if (OnPropertyChange("ModifyUser", value)) _ModifyUser = value; }
		}

		private DateTime _ModifyTime;
		/// <summary>
		/// 修改时间
		/// </summary>
		[Description("修改时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(27, "ModifyTime", "修改时间", "", "datetime2", 7, 0, false)]
		public DateTime ModifyTime
		{
			get { return _ModifyTime; }
			set { if (OnPropertyChange("ModifyTime", value)) _ModifyTime = value; }
		}

		private String _BackupNo;
		/// <summary>
		/// 备份编号
		/// </summary>
		[Description("备份编号")]
		[DataObjectField(false, false, true, 15)]
		[BindColumn(28, "BackupNo", "备份编号", "", "nvarchar(15)", 0, 0, true)]
		public String BackupNo
		{
			get { return _BackupNo; }
			set { if (OnPropertyChange("BackupNo", value)) _BackupNo = value; }
		}

		private String _BackupOperator;
		/// <summary>
		/// 备份操作者
		/// </summary>
		[Description("备份操作者")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(29, "BackupOperator", "备份操作者", "", "nvarchar(200)", 0, 0, true)]
		public String BackupOperator
		{
			get { return _BackupOperator; }
			set { if (OnPropertyChange("BackupOperator", value)) _BackupOperator = value; }
		}

		private DateTime _BackupTime;
		/// <summary>
		/// 备份时间
		/// </summary>
		[Description("备份时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(30, "BackupTime", "备份时间", "", "datetime2", 7, 0, false)]
		public DateTime BackupTime
		{
			get { return _BackupTime; }
			set { if (OnPropertyChange("BackupTime", value)) _BackupTime = value; }
		}

		private String _BackupMemo;
		/// <summary>
		/// 备份注释
		/// </summary>
		[Description("备份注释")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(31, "BackupMemo", "备份注释", "", "nvarchar(50)", 0, 0, true)]
		public String BackupMemo
		{
			get { return _BackupMemo; }
			set { if (OnPropertyChange("BackupMemo", value)) _BackupMemo = value; }
		}
		#endregion

		#region 获取/设置 字段值
		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case "ID" : return _ID;
					case "SiteID" : return _SiteID;
					case "InitScore" : return _InitScore;
					case "PublishTheme" : return _PublishTheme;
					case "DeleteTheme" : return _DeleteTheme;
					case "PublishPost" : return _PublishPost;
					case "DeletePost" : return _DeletePost;
					case "Best" : return _Best;
					case "CancelBest" : return _CancelBest;
					case "Bright" : return _Bright;
					case "CancelBright" : return _CancelBright;
					case "TopTheme" : return _TopTheme;
					case "CancelTop" : return _CancelTop;
					case "UpTheme" : return _UpTheme;
					case "DownTheme" : return _DownTheme;
					case "Upload" : return _Upload;
					case "Download" : return _Download;
					case "Search" : return _Search;
					case "Vote" : return _Vote;
					case "prop1" : return _prop1;
					case "prop2" : return _prop2;
					case "prop3" : return _prop3;
					case "prop4" : return _prop4;
					case "AddUser" : return _AddUser;
					case "AddTime" : return _AddTime;
					case "ModifyUser" : return _ModifyUser;
					case "ModifyTime" : return _ModifyTime;
					case "BackupNo" : return _BackupNo;
					case "BackupOperator" : return _BackupOperator;
					case "BackupTime" : return _BackupTime;
					case "BackupMemo" : return _BackupMemo;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case "ID" : _ID = Convert.ToInt32(value); break;
					case "SiteID" : _SiteID = Convert.ToInt32(value); break;
					case "InitScore" : _InitScore = Convert.ToInt32(value); break;
					case "PublishTheme" : _PublishTheme = Convert.ToInt32(value); break;
					case "DeleteTheme" : _DeleteTheme = Convert.ToInt32(value); break;
					case "PublishPost" : _PublishPost = Convert.ToInt32(value); break;
					case "DeletePost" : _DeletePost = Convert.ToInt32(value); break;
					case "Best" : _Best = Convert.ToInt32(value); break;
					case "CancelBest" : _CancelBest = Convert.ToInt32(value); break;
					case "Bright" : _Bright = Convert.ToInt32(value); break;
					case "CancelBright" : _CancelBright = Convert.ToInt32(value); break;
					case "TopTheme" : _TopTheme = Convert.ToInt32(value); break;
					case "CancelTop" : _CancelTop = Convert.ToInt32(value); break;
					case "UpTheme" : _UpTheme = Convert.ToInt32(value); break;
					case "DownTheme" : _DownTheme = Convert.ToInt32(value); break;
					case "Upload" : _Upload = Convert.ToInt32(value); break;
					case "Download" : _Download = Convert.ToInt32(value); break;
					case "Search" : _Search = Convert.ToInt32(value); break;
					case "Vote" : _Vote = Convert.ToInt32(value); break;
					case "prop1" : _prop1 = Convert.ToString(value); break;
					case "prop2" : _prop2 = Convert.ToString(value); break;
					case "prop3" : _prop3 = Convert.ToString(value); break;
					case "prop4" : _prop4 = Convert.ToString(value); break;
					case "AddUser" : _AddUser = Convert.ToString(value); break;
					case "AddTime" : _AddTime = Convert.ToDateTime(value); break;
					case "ModifyUser" : _ModifyUser = Convert.ToString(value); break;
					case "ModifyTime" : _ModifyTime = Convert.ToDateTime(value); break;
					case "BackupNo" : _BackupNo = Convert.ToString(value); break;
					case "BackupOperator" : _BackupOperator = Convert.ToString(value); break;
					case "BackupTime" : _BackupTime = Convert.ToDateTime(value); break;
					case "BackupMemo" : _BackupMemo = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}
		#endregion

		#region 字段名
		/// <summary>
		/// 取得论坛分数字段名的快捷方式
		/// </summary>
		public class _
		{
			///<summary>
			/// 编号
			///</summary>
			public const String ID = "ID";

			///<summary>
			/// 站点编号
			///</summary>
			public const String SiteID = "SiteID";

			///<summary>
			/// 初始分数
			///</summary>
			public const String InitScore = "InitScore";

			///<summary>
			/// 发布主题
			///</summary>
			public const String PublishTheme = "PublishTheme";

			///<summary>
			/// 删除主题
			///</summary>
			public const String DeleteTheme = "DeleteTheme";

			///<summary>
			/// 发布发布
			///</summary>
			public const String PublishPost = "PublishPost";

			///<summary>
			/// 删除发布
			///</summary>
			public const String DeletePost = "DeletePost";

			///<summary>
			/// 最好
			///</summary>
			public const String Best = "Best";

			///<summary>
			/// 取消最好
			///</summary>
			public const String CancelBest = "CancelBest";

			///<summary>
			/// 明亮
			///</summary>
			public const String Bright = "Bright";

			///<summary>
			/// 取消明亮
			///</summary>
			public const String CancelBright = "CancelBright";

			///<summary>
			/// 顶部主题
			///</summary>
			public const String TopTheme = "TopTheme";

			///<summary>
			/// 取消顶部
			///</summary>
			public const String CancelTop = "CancelTop";

			///<summary>
			/// 上主题
			///</summary>
			public const String UpTheme = "UpTheme";

			///<summary>
			/// 下主题
			///</summary>
			public const String DownTheme = "DownTheme";

			///<summary>
			/// 上传
			///</summary>
			public const String Upload = "Upload";

			///<summary>
			/// 下载
			///</summary>
			public const String Download = "Download";

			///<summary>
			/// 搜索
			///</summary>
			public const String Search = "Search";

			///<summary>
			/// 投票
			///</summary>
			public const String Vote = "Vote";

			///<summary>
			/// 属性1
			///</summary>
			public const String prop1 = "prop1";

			///<summary>
			/// 属性2
			///</summary>
			public const String prop2 = "prop2";

			///<summary>
			/// 属性3
			///</summary>
			public const String prop3 = "prop3";

			///<summary>
			/// 属性4
			///</summary>
			public const String prop4 = "prop4";

			///<summary>
			/// 添加用户
			///</summary>
			public const String AddUser = "AddUser";

			///<summary>
			/// 添加时间
			///</summary>
			public const String AddTime = "AddTime";

			///<summary>
			/// 修改用户
			///</summary>
			public const String ModifyUser = "ModifyUser";

			///<summary>
			/// 修改时间
			///</summary>
			public const String ModifyTime = "ModifyTime";

			///<summary>
			/// 备份编号
			///</summary>
			public const String BackupNo = "BackupNo";

			///<summary>
			/// 备份操作者
			///</summary>
			public const String BackupOperator = "BackupOperator";

			///<summary>
			/// 备份时间
			///</summary>
			public const String BackupTime = "BackupTime";

			///<summary>
			/// 备份注释
			///</summary>
			public const String BackupMemo = "BackupMemo";
		}
		#endregion
	}
}